<?php
const a=22;
trait ta{
    public function a(){
        echo "ta:a";
    }
    public function b(){
        echo "ta:b";
    }

}
trait tb{
    public function a(){
        echo "tb:a";
    }
    public function b(){
        echo "tb:b";
    }
}
class sb{

    const ABC=12;
    public function  aa(){
        echo "aa";
}
    use ta,tb{
        ta::a insteadof tb;
        ta::b insteadof tb;
        tb::a as c;
    }
}

class cjsb{
    public function  bb(){
        echo "bb";
    }
    use ta;
}

$a =new sb();
$a->a();
$a->b();
$a->c();
echo SB::ABC;
